package life.sweet.community.exception;

public enum CustomErrorCode implements ICustomErrorCode {
    QUESTION_NOT_FOUND(2001,"问题不存在了，要不换个试试看"),
    TARGET_PARAM_NOT_FOUND(2002,"未选中任何问题或者评论进行回复"),
    NO_LOGIN(2003,"用户未登录，请先登录"),
    SYS_ERROR(2004,"系统错误"),
    TYPE_PARAM_WRONG(2005,"评论类型为空或错误"),
    COMMENT_NOT_FOUND(2006,"评论不存在"),
    CONTENT_IS_EMPTY(2007,"输入内容为空"),
    READ_NOTIFICATION_FAIL(2008,"兄弟你这是读别人的消息呢！"),
    NOTIFICATION_NOT_FOUND(2009,"消息默认不翼而飞了？"),
    FILE_UPLOAD_ERROR(2010,"图片上传失败");

    private Integer code;
    private String message;

    CustomErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }


}
